import { S } from '../../s';
import { IPSAppPanelView } from './ipsapp-panel-view';
import { PSAppViewImpl } from './psapp-view-impl';

export class PSAppPanelViewImpl
  extends PSAppViewImpl
  implements IPSAppPanelView
{
  get enableDP(): boolean {
    return this.M.enableDP;
  }

  get enablePullDownRefresh(): boolean {
    return this.M.enablePullDownRefresh;
  }

  get enableWF(): boolean {
    return this.M.enableWF != null ? this.M.enableWF : false;
  }
  get cls(): string {
    return 'PSAppPanelViewImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._28 || cls == S._7d) return true;
    return super.instanceof(cls);
  }
}
